#!/usr/bin/python
# -*- coding: UTF-8 -*-

list1 = [123]
list2 = [234]
a = list1 > list2
print(a)

list1 = [123, 456]
list2 = [234, 123]
a = list1 > list2
print(a)

list3 = [123, 456]
b = (list1 < list2) and (list1 < list3)
print(b)

list4 = list1 + list2
print(list4)

list5 = [123, ['小甲鱼', '牡丹花'], 456]
c = '小甲鱼' in list5
print('c', c)
c = 456 in list5
print('c', c)

c = '小甲鱼' in list5[1]
print('c小甲鱼', c)

c = list5[1][1]
print(c)

c = dir(list5)
print(c)

c = list3.count
print('cc', c)

c = list3.count(123)
print(c)

c = list3.index(123)
print('index', c)

c = list3.reverse()
print('reverse', c)
print(list3)

list5 = [4, 2, 5, 1, 32, 8, 6]
so = list5.sort()
print(so)
print(list5)

list6 = [4, 2, 6, 1, 9, 32, 8]
list6.sort()
print(list6)

list6.sort(reverse = True)
print(list6)

list7 = list6[:]  # 拷贝
list8 = list6  # 指向同一个
print('list7', list7)
print('list8', list8)

list6.sort()
print('list6', list6)
print('list7', list7)
print('list8', list8)
